﻿<UserControl
    x:Class="SLCC.SL.Portal.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
    xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">

    <Grid x:Name="LayoutRoot" Style="{StaticResource LayoutRootGridStyle}">

        <Border x:Name="ContentBorder" Style="{StaticResource ContentBorderStyle}">

            <navigation:Frame x:Name="ContentFrame" Style="{StaticResource ContentFrameStyle}" 
                              Source="Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
                <navigation:Frame.UriMapper>
                  <uriMapper:UriMapper>
                    <uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
                    <uriMapper:UriMapping Uri="Home" MappedUri="/Views/Home.xaml"/>
                    <uriMapper:UriMapping Uri="Register" MappedUri="/Views/Register.xaml" />
                    <uriMapper:UriMapping Uri="Sessions"
                                              MappedUri="/Views/Sessions.xaml" />
                    <uriMapper:UriMapping Uri="Schedule"
                                              MappedUri="/Views/Schedule.xaml" />
                    <uriMapper:UriMapping Uri="Speakers"
                                              MappedUri="/Views/Speakers.xaml" />
                    <uriMapper:UriMapping Uri="Location"
                                              MappedUri="/Views/Location.xaml" />
                    <uriMapper:UriMapping Uri="Tweets"
                                              MappedUri="/Views/Tweets.xaml" />
                    <uriMapper:UriMapping Uri="Messages"
                                              MappedUri="/Views/Messages.xaml" />
                    <uriMapper:UriMapping Uri="Login"
                                              MappedUri="/Views/Login.xaml" />
                    </uriMapper:UriMapper>
                </navigation:Frame.UriMapper>
            </navigation:Frame>
        </Border>

        <Grid x:Name="NavigationGrid" Style="{StaticResource NavigationGridStyle}">

            <Border x:Name="BrandingBorder" Style="{StaticResource BrandingBorderStyle}">
                <StackPanel x:Name="BrandingStackPanel" Style="{StaticResource BrandingStackPanelStyle}">

                    <ContentControl Style="{StaticResource LogoIcon}"/>
                    <TextBlock x:Name="ApplicationNameTextBlock" Style="{StaticResource ApplicationNameStyle}" 
                               Text="Application Name"/>

                </StackPanel>
            </Border>

            <Border x:Name="LinksBorder" Style="{StaticResource LinksBorderStyle}">
                <StackPanel x:Name="LinksStackPanel" Style="{StaticResource LinksStackPanelStyle}">

                    <HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}" 
                                     NavigateUri="Home" TargetName="ContentFrame" Content="home"/>
									 
                    <Rectangle x:Name="Divider1" Style="{StaticResource DividerStyle}"/>

                    <HyperlinkButton x:Name="RegisterLink"
                                     Style="{StaticResource LinkStyle}"
                                     NavigateUri="Register"
                                     TargetName="ContentFrame"
                                     Content="Register" />
                    <HyperlinkButton x:Name="SessionsLink"
                                     Style="{StaticResource LinkStyle}"
                                     NavigateUri="Sessions"
                                     TargetName="ContentFrame"
                                     Content="Sessions" />
                    <HyperlinkButton x:Name="ScheduleLink"
                                     Style="{StaticResource LinkStyle}"
                                     NavigateUri="Schedule"
                                     TargetName="ContentFrame"
                                     Content="Schedule" />
                    <HyperlinkButton x:Name="SpeakersLink"
                                     Style="{StaticResource LinkStyle}"
                                     NavigateUri="Speakers"
                                     TargetName="ContentFrame"
                                     Content="Speakers" />
                    <HyperlinkButton x:Name="LocationLink"
                                     Style="{StaticResource LinkStyle}"
                                     NavigateUri="Location"
                                     TargetName="ContentFrame"
                                     Content="Location" />
                    <HyperlinkButton x:Name="TweetsLink"
                                     Style="{StaticResource LinkStyle}"
                                     NavigateUri="Tweets"
                                     TargetName="ContentFrame"
                                     Content="Tweets" />
                    <HyperlinkButton x:Name="MessagesLink"
                                     Style="{StaticResource LinkStyle}"
                                     NavigateUri="Messages"
                                     TargetName="ContentFrame"
                                     Content="Messages" />
                    <HyperlinkButton x:Name="LoginLink"
                                     Style="{StaticResource LinkStyle}"
                                     NavigateUri="Login"
                                     TargetName="ContentFrame"
                                     Content="Login" />

                </StackPanel>
            </Border>

        </Grid>

    </Grid>

</UserControl>